package com.hckj.jianzhijia.popupwindows;

import android.app.Activity;
import android.content.Context;
import android.graphics.drawable.BitmapDrawable;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.PopupWindow;
import android.widget.TextView;

import com.hckj.jianzhijia.R;
import com.hckj.jianzhijia.utils.Data;


/**
 * 兼职种类的popwin
 * Created by 赵奇隆 on 2015-10-28.
 */
public class PublishPopWinJobType extends ListPopupWindow {

    private PublishPopWinJobTypeInterface publishPopWinJobTypeInterface;

    public PublishPopWinJobType(Context context,PublishPopWinJobTypeInterface publishPopWinJobTypeInterface, View parentView, View anchorView) {
        super(context, parentView, anchorView, Data.JobTypeData);
        this.publishPopWinJobTypeInterface = publishPopWinJobTypeInterface;
    }

    @Override
    public void getListItem(int position, String itemName) {
        publishPopWinJobTypeInterface.setJobType(position,itemName);
    }

    public  interface PublishPopWinJobTypeInterface{
        public void setJobType(int position,String name);
    }
}
